home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 6_17.lha / 6_17 / 6_17a16.c < prev    next >
Text File  |  1993-08-08  |  241b  |  10 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / f = v[i]
  6. loat& vector::operator[](int i)
  7.  
  8.    return p->f[(i >= 0) && (i < p->length) ? i : 0];
  9.  
  10.